package com.example.mybatisplus.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.example.mybatisplus.model.domain.Business;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lxp
 * @since 2024-07-17
 */
@Mapper
public interface BusinessMapper extends BaseMapper<Business> {
//        Business findBusinessById(String businessId);
        //List<Business> findBusinessList();

        List<Business> findnearBusiness();

        List<Business> findHighScoreBusiness();

        List<Business> filterBusinessList(@Param("distance") Float distance, @Param("stars") Float stars);






}
